package com.hzpd.hainan.app;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;

import com.hzpd.hainan.R;
import com.hzpd.hainan.utils.ReadModeUtils;
import com.hzpd.hainan.utils.SPUtil;


public class BaseActivity extends AppCompatActivity {
    protected Context mContext;

    protected SPUtil spu;//

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        mContext = this;
        spu=SPUtil.getInstance();

    }

    @Override
    protected void onResume() {
        super.onResume();
        //夜间模式
        ReadModeUtils.setNightOrDayMode(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
    }


}
